package 尚硅谷.juc.test3;

import java.util.concurrent.atomic.AtomicInteger;

public class Test3 {

    AtomicInteger atomicInteger=new AtomicInteger(0);

    public  void add(){
        int i = atomicInteger.addAndGet(1);
    }
}
